$(function () {
  const totalTime = 7500;
  const breathTime = (totalTime / 5) * 2;
  const holdOnTime = totalTime / 5;
  function breath() {
    $(".text").text("吸气");
    $(".container").attr("class", "container grow");
    setTimeout(() => {
      $(".text").text("HoldOn");
    }, breathTime);
    setTimeout(() => {
      $(".text").text("呼气");
      $(".container").attr("class", "container shrink");
    }, breathTime + holdOnTime);
  }
  breath();
  setInterval(() => {
    breath();
  }, totalTime);
});
